/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.service;

//import com.xy.biz.dd.domain.req.SaveDataCellRequest;
//import com.xy.biz.dd.domain.req.SaveDataTableRequest;
//import com.xy.biz.dd.domain.resp.GetDataTemplateResponse;
import com.xy.biz.rs.domain.bo.ManufactureRecordTemplateBO;
import com.xy.biz.rs.domain.query.ManufactureRecordTemplateQuery;
import com.xy.biz.rs.domain.req.GetByProductDictCodeRequest;
import com.xy.biz.rs.domain.req.SaveManufactureRecordTemplateRequest;
import com.xy.biz.rs.domain.req.UpdateManufactureRecordTemplateRequestStatus;
import com.xy.biz.rs.domain.resp.GetManufactureRecordTemplateResponse;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2021-4-13
 */
public interface ManufactureRecordTemplateService {

	/**
	 * 保存
	 *
	 * @param manufactureRecordTemplateBO
	 */
	Result<?> saveManufactureRecordTemplate(ManufactureRecordTemplateBO manufactureRecordTemplateBO);

	/**
	 * 更新
	 *
	 * @param request
	 */
	Result<?> updateManufactureRecordTemplate(SaveManufactureRecordTemplateRequest request);

	/**
	 * 模板状态修改
	 * @param request
	 * @return
	 */
	Result<?> updateManufactureRecordTemplateStatus(UpdateManufactureRecordTemplateRequestStatus request);

	/**
	 * 删除
	 *
	 * @param manufactureRecordTemplateId
	 */
	Result<?> deleteManufactureRecordTemplate(Long manufactureRecordTemplateId);

	/**
	 * 查找一个
	 *
	 * @param manufactureRecordTemplateId
	 * @return
	 */
//	Result<GetManufactureRecordTemplateResponse> getManufactureRecordTemplate(Long manufactureRecordTemplateId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ManufactureRecordTemplateBO> listManufactureRecordTemplateById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ManufactureRecordTemplateBO> listManufactureRecordTemplate(ManufactureRecordTemplateQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countManufactureRecordTemplate(ManufactureRecordTemplateQuery query);

	/**
	 * 保存表格数据
	 * @param request
	 * @return
	 */
	//Result<GetDataTemplateResponse> saveDataTable(SaveDataTableRequest request);

	/**
	 * 修改表格数据
	 * @param request
	 * @return
	 */
	//Result<GetDataTemplateResponse> updateDataTable(SaveDataTableRequest  request);

	/**
	 * 保存单元格数据
	 * @param request
	 * @return
	 */
	//Result<GetDataTemplateResponse> saveDataCell(SaveDataCellRequest request);

	/**
	 * 保存单元格数据
	 * @param request
	 * @return
	 */
	//Result<GetDataTemplateResponse> updateDataCell(SaveDataCellRequest request);

    Result<GetManufactureRecordTemplateResponse> getRecordTemplateByDictCode(GetByProductDictCodeRequest request);
}
